package routers

import (
	"github.com/gin-gonic/gin"
	"weibo-pub/handlers"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/user/login", handlers.UserLogin)
	r.GET("/weibo/list", handlers.WeiBoList)
	r.GET("/weibo/detail", handlers.Detail)
	return r
}
